package cn.myxl.smart.devkit.commit.model;

import lombok.Data;

import java.util.List;
import java.util.Objects;

@Data
public class SettingState {
    private String template;
    private List<CommitType> typeAliases;

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;

        if (object == null || getClass() != object.getClass()) return false;

        SettingState settingState = (SettingState) object;

        return Objects.equals(typeAliases, settingState.typeAliases) && Objects.equals(template, settingState.template);
    }

    @Override
    public int hashCode() {
        return Objects.hash(typeAliases, template);
    }
}
